# 字符串根据字典序进行比较
# a = "hello world"
# b = "world"
#
# print(a == b)
# print(a != b)
# print(a <= b)
# print(a >= b)

# 中文比较没有意义
# a = "你好"
# b = "世界"
#
# print(a == b)
# print(a != b)
# print(a <= b)
# print(a >= b)


# 浮点数类型进行比较可能存在风险

# print(0.3 == 0.1 + 0.2)

#浮点数要根据错差进行比较
# a = 0.3
# b = 0.1 + 0.2
# print(-0.00001< a - b < 0.00001)
